package com.project.bean;

import java.util.List;

/**房间实体类*/
public class RoomBean {
    /**房间id*/
    private int roomId;
    /**房间地址*/
    private String roomAddress;
    /**房间状态（正常/设施损坏）*/
    private String roomState = "正常";
    /**房间类别（男寝/女寝）*/
    private String type;
    /**该房间所有的学生集合*/
    private List<StudentBean> stuList;
    /**房间最大容纳人数*/
    private int maxNum;
    /**已住人数*/
    private int num;


    public RoomBean() {
    }

    public RoomBean(String roomAddress, String type, int maxNum) {
        this.roomAddress = roomAddress;
        this.type = type;
        this.maxNum = maxNum;
    }

    public RoomBean(String roomAddress, String roomState, String type, int num, int maxNum) {
        this.roomAddress = roomAddress;
        this.roomState = roomState;
        this.type = type;
        this.num = num;
        this.maxNum = maxNum;
    }

    public int getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(int maxNum) {
        this.maxNum = maxNum;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public String getRoomAddress() {
        return roomAddress;
    }

    public void setRoomAddress(String roomAddress) {
        this.roomAddress = roomAddress;
    }

    public String getRoomState() {
        return roomState;
    }

    public void setRoomState(String roomState) {
        this.roomState = roomState;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<StudentBean> getStuList() {
        return stuList;
    }

    public void setStuList(List<StudentBean> stuList) {
        this.stuList = stuList;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "roomId=" + roomId +
                ", roomAddress='" + roomAddress + '\'' +
                ", roomState='" + roomState + '\'' +
                ", type='" + type + '\'' +
                ", stuList=" + stuList +
                ", maxNum=" + maxNum +
                ", num=" + num +
                "}\n";
    }
}
